﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using OnlineUserBlock.Components;

namespace PhotoGallery.Application.OnlineUserProvider
{
    public class UserExtend : oluUserInfo
    {
        private string m_UserHostAddress = string.Empty;
        private string m_BrowserType = string.Empty;
        private string m_Platform = string.Empty;

        public UserExtend(string userName, string nickName, bool anonymous, object userData)
            : base(userName, nickName, anonymous, userData)
        {
            m_UserHostAddress = HttpContext.Current.Request.UserHostAddress;
            m_BrowserType = HttpContext.Current.Request.Browser.Type;
            m_Platform = HttpContext.Current.Request.Browser.Platform;
        }

        public string UserHostAddress
        {
            get { return m_UserHostAddress; }
        }

        public string BrowserType
        {
            get { return m_BrowserType; }
        }

        public string Platform
        {
            get { return m_Platform; }
        }

        public Guid UserId
        {
            get;
            set;
        }

        public string UserTypeName
        {
            get;
            set;
        }

        public string UserGender
        {
            get;
            set;
        }
        public string PicUrl
        {
            get;
            set;
        }
        public string Unit
        {
            get;
            set;
        }
    }
}
